Carlos Garnacho [Tue, 8 Jul 2014 13:27:06 +0000 (15:27 +0200)]
textview: Fix cursor positioning oddities when scrolling through Pg Up/Down
Use the adjustment target value when repositioning the cursor, and remove the
checks that ensured the cursor was made onscreen immediately, as there will
be definitely a delay on animated adjustment changes.
Carlos Garnacho [Tue, 8 Jul 2014 13:22:24 +0000 (15:22 +0200)]
textview: Use adjustment animations in gtk_text_view_scroll_to_iter()
This makes keyboard-triggered scrolling animated, as this function is
used underneath in order to make the cursor onscreen after it is
displaced.
Carlos Garnacho [Tue, 8 Jul 2014 13:17:23 +0000 (15:17 +0200)]
textview: Use the adjustment target value to figure out if keynav failed
When moving the cursor, compare current adjustment value with the post-animation
target value, in order to avoid false "keynav failed" positives as the animation
hasn't started yet, so dx/dy are still 0 at that time.
Carlos Garnacho [Tue, 8 Jul 2014 13:13:31 +0000 (15:13 +0200)]
adjustment: Add private gtk_adjustment_get_target_value() method
This call returns either the target value if there is an ongoing animation,
or the current value if there is no animation.
Lapo Calamandrei [Tue, 8 Jul 2014 19:33:48 +0000 (21:33 +0200)]
Adwaita: minor fixes
Lapo Calamandrei [Tue, 8 Jul 2014 16:28:02 +0000 (18:28 +0200)]
Adwaita: update comments in drawings
Lapo Calamandrei [Tue, 8 Jul 2014 16:24:28 +0000 (18:24 +0200)]
Adwaita: buttons on gtkvolume popup
Lapo Calamandrei [Tue, 8 Jul 2014 14:54:00 +0000 (16:54 +0200)]
Adwaita: spinbutton button inhert in backdrop
Matthias Clasen [Tue, 8 Jul 2014 14:44:30 +0000 (10:44 -0400)]
GtkScaleButton: Add a style class to the scale button popover
Set the .scale-popup style class on the popover of scale buttons.
This lets us select the +/- buttons and style them appropriately.
Lapo Calamandrei [Tue, 8 Jul 2014 14:42:10 +0000 (16:42 +0200)]
Adwaita: remove the image effect for buttons icons in backdrop
Lapo Calamandrei [Tue, 8 Jul 2014 14:36:02 +0000 (16:36 +0200)]
Adwaita: inhert scrollbars in backdrop
Matthias Clasen [Tue, 8 Jul 2014 14:27:30 +0000 (10:27 -0400)]
GtkScaleButton: Set +/- sensitivity
The buttons should go insensitive when we are at their end of
the scale.
Matthias Clasen [Tue, 8 Jul 2014 13:29:28 +0000 (09:29 -0400)]
Add view-context-menu-symbolic to checked icon names
Matthias Clasen [Tue, 8 Jul 2014 12:35:33 +0000 (08:35 -0400)]
GtkMenuButton: Use view-context-menu-symbolic when direction is NONE
This makes it easier to construct gear menus: just set the direction
to 'none', no need to manually construct an image.
Lapo Calamandrei [Tue, 8 Jul 2014 12:35:06 +0000 (14:35 +0200)]
Adwaita: column header dnd style.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=731663
Matthias Clasen [Tue, 8 Jul 2014 12:30:42 +0000 (08:30 -0400)]
Use view-content-menu-symbolic in example apps
Matthias Clasen [Tue, 8 Jul 2014 10:53:02 +0000 (06:53 -0400)]
widget-factory: Use view-context-menu-symbolic
Lapo Calamandrei [Tue, 8 Jul 2014 10:52:25 +0000 (12:52 +0200)]
Adwaita: selection mode and selection menu tweaks
Matthias Clasen [Tue, 8 Jul 2014 10:24:34 +0000 (06:24 -0400)]
widget-factory: Content for the action dialog
Dialogs look better with some actual content.
Yosef Or Boczko [Tue, 8 Jul 2014 09:55:14 +0000 (12:55 +0300)]
Updated Hebrew translation
Lapo Calamandrei [Tue, 8 Jul 2014 09:22:59 +0000 (11:22 +0200)]
Adwaita: generalize inline and search bars
So the style get applied not only to say .toolbar.search-bar, but
.search-bar. Need to figure out something for possible missing borders.
Lapo Calamandrei [Tue, 8 Jul 2014 08:46:39 +0000 (10:46 +0200)]
Adwaita: selection menu button style fixes
Lapo Calamandrei [Tue, 8 Jul 2014 08:17:02 +0000 (10:17 +0200)]
Adwaita: fix reorderable tab label color once again
Rico Tzschichholz [Tue, 8 Jul 2014 08:12:52 +0000 (10:12 +0200)]
build: Fix make dist
Lapo Calamandrei [Tue, 8 Jul 2014 08:06:57 +0000 (10:06 +0200)]
Adwaita: style notebook tab overflow arrow
Matthias Clasen [Tue, 8 Jul 2014 02:36:56 +0000 (22:36 -0400)]
GtkImage: Add cairo surface api to the docs
https://bugzilla.gnome.org/show_bug.cgi?id=732861
Matthias Clasen [Mon, 7 Jul 2014 23:44:39 +0000 (19:44 -0400)]
Document gtk_application_get_menu_by_id
Jasper St. Pierre [Mon, 7 Jul 2014 20:20:50 +0000 (16:20 -0400)]
gtkwindow: Remove the unused GTK_WINDOW_REGION_EDGE
Matthias Clasen [Mon, 7 Jul 2014 20:27:38 +0000 (16:27 -0400)]
Bloatpad: fix up icons
The references to png files were doubly broken: first, by the icon
theme changes, and more recently, by the move of bloatpad. Fix them
up.
Piotr Drąg [Mon, 7 Jul 2014 18:50:41 +0000 (20:50 +0200)]
Updated POTFILES.skip
Ryan Lortie [Mon, 7 Jul 2014 18:36:57 +0000 (14:36 -0400)]
GtkApplication: document icon path setup
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Ryan Lortie [Fri, 4 Jul 2014 13:46:57 +0000 (09:46 -0400)]
bloatpad: use Gtk's automated menu loading
We move our menus.ui file into Gtk's namespace so that it will get
picked up. Accordingly, we no longer have to do any of the work for
ourselves...
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Ryan Lortie [Mon, 7 Jul 2014 18:32:10 +0000 (14:32 -0400)]
GtkAppliation: setup icon theme resource path
If we have a resource base path for the application, set up an icon
theme search path based on it (within the default icon theme).
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Ryan Lortie [Fri, 4 Jul 2014 13:44:12 +0000 (09:44 -0400)]
GtkApplication: use resources for loading menus
Use the new ::resource-base-path property on #GApplication to attempt to
load the menu layout of the application.
We look first at gtk/menus-appmenu.ui or gtk/menus-traditional.ui
depending on the setting of gtk_application_prefers_app_menu(). Failing
that, we fall back to the common case of gtk/menus.ui (which should
always be given). This provides a convenient way for application
authors to provide a different set of menus, depending on the desktop
environment they find themselves in.
As is the intention with other resources, if the resource base path is
unset, nothing will be loaded. Additionally, if the expected files are not
found, it is not an error -- just nothing happens.
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Matthias Clasen [Mon, 7 Jul 2014 18:33:25 +0000 (14:33 -0400)]
widget-factory: Add reorderable treeview columns
Lapo Calamandrei [Mon, 7 Jul 2014 18:32:16 +0000 (20:32 +0200)]
Adwaita: fix selection mode toolbar
Selection menu button still needs fixing
Piotr Drąg [Mon, 7 Jul 2014 18:10:10 +0000 (20:10 +0200)]
Updated POTFILES.skip
Piotr Drąg [Mon, 7 Jul 2014 18:08:04 +0000 (20:08 +0200)]
Updated POTFILES.in and POTFILES.skip
Benjamin Otte [Mon, 7 Jul 2014 18:05:56 +0000 (20:05 +0200)]
reftests: Add a reftest for 'animation-direction'
It tests the latest two commits.
Benjamin Otte [Mon, 7 Jul 2014 18:04:34 +0000 (20:04 +0200)]
cssanimation: Fix animation-direction handling
"alternate" was behaving as "alternate-reverse" and vice versa.
Benjamin Otte [Mon, 7 Jul 2014 17:44:59 +0000 (19:44 +0200)]
css: Fix animation-direction parsing
We were parsig "alternate-reverse" as "alternate" and then complaining
about the "-reverse" junk at the end of the value.
Benjamin Otte [Mon, 7 Jul 2014 17:42:59 +0000 (19:42 +0200)]
clipboard: Fix compiler warning
Cast the type.
Benjamin Otte [Mon, 7 Jul 2014 17:41:21 +0000 (19:41 +0200)]
textview: Fix compiler warning
No need to use braces anymore.
Lapo Calamandrei [Mon, 7 Jul 2014 17:51:27 +0000 (19:51 +0200)]
Adwaita: non csd message dialog and entry shadow fix
Made the non csd message dialog more similar to the csd one (to
match the csd one we need mutter theme changes), little shadow fix
for entry.
Ryan Lortie [Thu, 3 Jul 2014 00:35:49 +0000 (20:35 -0400)]
bloatpad: use resources
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Ryan Lortie [Mon, 30 Jun 2014 21:13:05 +0000 (17:13 -0400)]
bloatpad: move into private subdir
Move bloatpad to ./examples/bp/ so that we can start treating it as more of a
"normal" app instead of just jamming everything into a single .c file.
We don't use the name "bloatpad" for the directory in order not to
create 'git pull' pain with the probably-already-existing executable of
the same name.
https://bugzilla.gnome.org/show_bug.cgi?id=722092
Lapo Calamandrei [Mon, 7 Jul 2014 15:56:29 +0000 (17:56 +0200)]
Adwaita: csd message dialog fixes.
Lighter shadow like popovers and bigger radius then buttons on
the background to avoid antialiasing artifacts.
Lapo Calamandrei [Mon, 7 Jul 2014 15:44:01 +0000 (17:44 +0200)]
Adwaita: .grid-child 2px padding
Lapo Calamandrei [Mon, 7 Jul 2014 15:21:52 +0000 (17:21 +0200)]
Adwaita: entry shadows work.
For the transition to work the box-shadows types in the shadow list
needs to be matched in various states so I'm using transparent shadows
istead of resetting them when not needed.
Yuri Myasoedov [Mon, 7 Jul 2014 13:05:15 +0000 (17:05 +0400)]
Updated Russian translation
Lapo Calamandrei [Mon, 7 Jul 2014 12:26:58 +0000 (14:26 +0200)]
Adwaita: minor sass changes.
Made _button_border_color($c) mixin in _button_border($c) fuction.
Benjamin Otte [Mon, 7 Jul 2014 12:25:08 +0000 (14:25 +0200)]
testsuite: Add parser test for recent fix
The test doesn't crash without the fix, but it parses the CSS
incorrectly and fails.
Benjamin Otte [Mon, 7 Jul 2014 11:09:30 +0000 (13:09 +0200)]
css: Don't special-case fill-mode in 'animation'
I have no idea why it was special cased when parsing the 'animation'
shorthand, but it caused crashes.
So remove the special case.
Lapo Calamandrei [Mon, 7 Jul 2014 12:17:51 +0000 (14:17 +0200)]
Adwaita: style .subtitle like .dim-label
Lapo Calamandrei [Mon, 7 Jul 2014 12:04:37 +0000 (14:04 +0200)]
Adwaita: use opacity on dim-labels istead of a hack
Lapo Calamandrei [Mon, 7 Jul 2014 11:30:24 +0000 (13:30 +0200)]
Adwaita: .dim-label
Jakub Steiner [Mon, 7 Jul 2014 11:26:09 +0000 (13:26 +0200)]
Adwaita: flat OSD style
Lapo Calamandrei [Mon, 7 Jul 2014 09:45:13 +0000 (11:45 +0200)]
Adwaita: fix combos and buttons padding issues.
For some strage reason (bug?) combobox buttons needs -2px vertical padding
wrt buttons to have the same size as buttons.
Matthias Clasen [Mon, 7 Jul 2014 03:10:44 +0000 (23:10 -0400)]
widget-factory: Fill out settings dialog
This gives an opportunity to use the dim-label style class.
Matthias Clasen [Sun, 6 Jul 2014 20:53:37 +0000 (16:53 -0400)]
GtkWindow: Elaborate the keybindings
Keep Ctrol-Shift-D as a straight toggle-the-inspector keybinding,
but make Ctrl-Shift-I always bring up the inspector, and point
it at the widget under the pointer.
Matthias Clasen [Sun, 6 Jul 2014 21:03:53 +0000 (17:03 -0400)]
GtkInspector: Add a function to select the widget under the pointer
Matthias Clasen [Sun, 6 Jul 2014 16:18:09 +0000 (12:18 -0400)]
GtkInspector: Add a style tab
This tab shows css properties of a widget, and their origin.
Matthias Clasen [Sun, 6 Jul 2014 16:16:26 +0000 (12:16 -0400)]
GtkCssProvider: Allow to enable debug at runtime
Add a private function that lets us decide at runtime whether to
keep css section information around - this will be useful in the
GtkInspector.
Matthias Clasen [Sun, 6 Jul 2014 20:51:29 +0000 (16:51 -0400)]
Drop a leftover declaration
This was left behind when resize grips were removed.
Matthias Clasen [Sun, 6 Jul 2014 16:16:06 +0000 (12:16 -0400)]
Trivial rearrangement
Matthias Clasen [Sun, 6 Jul 2014 22:37:29 +0000 (18:37 -0400)]
widget-factory: Avoid a crash on exit
Aurimas Černius [Sat, 5 Jul 2014 19:47:04 +0000 (22:47 +0300)]
Updated Lithuanian translation
Lapo Calamandrei [Sat, 5 Jul 2014 16:18:44 +0000 (18:18 +0200)]
Adwaita: message dialog, destructive and suggested action buttons.
...and generic linked destructive and suggested action button fix.
Lapo Calamandrei [Sat, 5 Jul 2014 14:30:43 +0000 (16:30 +0200)]
Adwaita: proper message dialog style.
Rounded bottom border added, custom style for csd versione only
[read: non csd version looks right now].
Yuri Myasoedov [Sat, 5 Jul 2014 07:10:02 +0000 (11:10 +0400)]
Updated Russian translation
Matthias Clasen [Fri, 4 Jul 2014 23:06:08 +0000 (19:06 -0400)]
GtkHeaderBar: Use defines for style classes
Matthias Clasen [Fri, 4 Jul 2014 22:13:56 +0000 (18:13 -0400)]
Add defines for title style classes
Matthias Clasen [Fri, 4 Jul 2014 20:49:55 +0000 (16:49 -0400)]
widget-factory: Add some mnemonics
Matthias Clasen [Fri, 4 Jul 2014 20:27:11 +0000 (16:27 -0400)]
widget-factory: Unset needs-attention too
This is not done automatically, so unset needs-attention when
the page becomes current.
Matthias Clasen [Fri, 4 Jul 2014 19:46:47 +0000 (15:46 -0400)]
widget-factory: show off needs-attention stack pages
When clicking 'Action' in the 'Act' dialog, we mark the third
page as needing attention a second later. This unveils that we
currently don't have any theming for needs-attention in Adwaita.
Matthias Clasen [Fri, 4 Jul 2014 06:01:53 +0000 (02:01 -0400)]
GdkScreen: Set reasonable limis for ::resolution
Otherwise, the spinbutton in the inspectors property editor
explodes in order to make room for MAXDOUBLE.
Matthias Clasen [Fri, 4 Jul 2014 05:06:31 +0000 (01:06 -0400)]
GtkScaleButton: Try harder not to pop over
When the popover does fit in the window, change the orientation
to make it fit.
Matthias Clasen [Thu, 3 Jul 2014 19:24:58 +0000 (15:24 -0400)]
Drop has-resize-grip from the notify test
The setter is not doing anything, so we won't get notification.
Matthias Clasen [Thu, 3 Jul 2014 19:23:34 +0000 (15:23 -0400)]
GtkWindow: Update default for has-default-grip
It is now FALSE.
Matthias Clasen [Thu, 3 Jul 2014 19:22:39 +0000 (15:22 -0400)]
disable runtime warnings in the defaultvalue test
This test operates generically on all properties, so warning
about deprecated properties does not make sense here.
Jasper St. Pierre [Thu, 3 Jul 2014 17:20:38 +0000 (13:20 -0400)]
wayland: Add some dumb support for the TARGETS selection
The way that GtkTextView et al pop up their context menu is to first
query to see if the clipboard has some text, and if so, enable the Paste
menu item. But since the Wayland backend hasn't had the greatest
selection and clipboard code, the callback for the clipboard got dropped
on the floor.
Add some simple code to respond to the TARGETS selection.
This makes right-clicking on a GtkTextView work fine.
Jasper St. Pierre [Wed, 2 Jul 2014 15:00:02 +0000 (11:00 -0400)]
gtkwindow: Remove resize grips
Resize grips were introduced for GNOME 3.0, before we had any of the
"new GNOME app" features like invisible borders and CSD. With OS X 10.6
and 10.7, Apple has replaced the classic grips in their applications
with invisible borders as well.
New GNOME app designs don't use resize grips anymore and the new
default theme for GTK+, Adwaita, disables them entirely by forcing their
width and height to 0.
They're past their time. Remove the code to support them. This can
always be reverted if some app relies on them.
Jasper St. Pierre [Thu, 3 Jul 2014 15:48:28 +0000 (11:48 -0400)]
gdkwindow: Don't queue a redraw when calling gdk_window_raise with no effect
The resize grip code in GTK+ likes to call gdk_window_raise a lot. The
unfortunate side effect of gdk_window_raise is that it queues an
invalidation on the entire window, even if it's already the topmost
child.
Add a return value to gdk_window_raise_internal, and only queue the
invalidation if the raise had an effect.
Jasper St. Pierre [Thu, 3 Jul 2014 15:48:24 +0000 (11:48 -0400)]
gdkwindow: Apply the 0x0 size bump to 1x1 before checking for the bail
Otherwise, a user that calls gdk_window_resize (window, 0, 0); over and
over won't properly fizzle out, and will queue a redraw. Clipped, but
still. These redraws can be chatty on some platforms like Wayland, and
there's no good reason to not avoid them.
This was the case for resize grips.
Jasper St. Pierre [Thu, 3 Jul 2014 14:55:31 +0000 (10:55 -0400)]
gtkwindow: Fix compile warnings
Sébastien Wilmet [Thu, 3 Jul 2014 12:08:14 +0000 (14:08 +0200)]
docs: make GtkWidget:margin-start and margin-end clearer
margin-start and margin-end have been added for RTL support, see:
https://bugzilla.gnome.org/show_bug.cgi?id=710238
So those properties are used only for the horizontal direction: left or
right, not top or bottom.
https://bugzilla.gnome.org/show_bug.cgi?id=732681
Matthias Clasen [Thu, 3 Jul 2014 12:34:02 +0000 (08:34 -0400)]
GtkSettings: fully undeprecate blink settings
We decided in
f8412eca34be6e2e655ad3e09bd97fa2bdcbdae0 that
we still need to react to these for a11y reasons, but left
the (then) harmless property deprecation in place. Now, the
deprecation causes runtime warnings for merely reading the
property, so drop it.
https://bugzilla.gnome.org/show_bug.cgi?id=732667
Sébastien Wilmet [Fri, 16 May 2014 19:14:53 +0000 (21:14 +0200)]
doc: trivial fix
Matthias Clasen [Thu, 3 Jul 2014 12:12:56 +0000 (08:12 -0400)]
win32: fix the build
A recent cleanup gone wrong,
https://bugzilla.gnome.org/show_bug.cgi?id=732454
Lapo Calamandrei [Thu, 3 Jul 2014 11:19:11 +0000 (13:19 +0200)]
Adwaita: some more notebook work...
...to try to make tab with close buttons to look better.
Jakub Steiner [Thu, 3 Jul 2014 10:37:48 +0000 (12:37 +0200)]
Adwaita: selection-mode selection-menu flat by default
Lapo Calamandrei [Thu, 3 Jul 2014 10:29:25 +0000 (12:29 +0200)]
Adwaita: style entry.warning and entry.error
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=724084
Lapo Calamandrei [Thu, 3 Jul 2014 09:01:31 +0000 (11:01 +0200)]
Adwaita: sidebar scrollbar fix.
.scrollbars-junction borders were removed by setting border-stylei: none,
it interacted (why?) with the scrollbars on sidebar, making the border
transparent seems not to have side effects there.
Lapo Calamandrei [Thu, 3 Jul 2014 08:30:14 +0000 (10:30 +0200)]
Adwaita: style progressbars in treeview cells.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732298
Lapo Calamandrei [Thu, 3 Jul 2014 07:31:51 +0000 (09:31 +0200)]
Adwaita: add transition to non flat popover buttons.
Matthias Clasen [Thu, 3 Jul 2014 03:55:20 +0000 (23:55 -0400)]
widget-factory: Expand the treeview example a bit
Show resizable, sortable and ellipsizable columns.
Matthias Clasen [Thu, 3 Jul 2014 02:52:10 +0000 (22:52 -0400)]
inspector: Handle the dialog more carefully
When showing and hiding the inspector window repeatedly without
dismissing the dialog, we were hiding the inspector, but not
the dialog, leading to a confusing user experience.
https://bugzilla.gnome.org/show_bug.cgi?id=732443
Matthias Clasen [Thu, 3 Jul 2014 00:37:55 +0000 (20:37 -0400)]
GtkRange: Animate scrollbar jumps
Matthias Clasen [Thu, 3 Jul 2014 00:36:41 +0000 (20:36 -0400)]
GtkListBox: Animate keybindings
Matthias Clasen [Thu, 3 Jul 2014 00:36:23 +0000 (20:36 -0400)]
GtkIconView: Animate keybindings